<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost/" />
<title>test_submit_book_approval</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">test_submit_book_approval</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>http://localhost</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>p_un</td>
	<td>hyde</td>
</tr>
<tr>
	<td>type</td>
	<td>p_pw</td>
	<td>h123yde</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>action</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://localhost/yourapprovals.py</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>You are not authorized to use approval system.</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>http://localhost/publiline.py?doctype=DEMOBOO</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=DEMO-BOOK-2009-001</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextNotPresent</td>
	<td>As a referee for this document, you may click this button to approve or reject it</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=login here</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>p_un</td>
	<td>dorian</td>
</tr>
<tr>
	<td>type</td>
	<td>p_pw</td>
	<td>d123orian</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>action</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Your approvals</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>You are a general referee</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=You are a general referee</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>DEMO-BOOK-</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=DEMO-BOOK-2009-001</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>As a referee for this document, you may click this button to approve or reject it</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=logout</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
